package com.gavin.test.bean;

import com.gavin.model.Request;

/**
 * @author Yudao 王冬明（woyuwodao@gmail.com）
 * @version 1.0
 * @title Administrator
 * @date 2018/11/15 17:28
 * @package com.gavin.test.bean
 */
public class A {


    private Object object;
    private java.lang.Long id;
    private java.lang.Long userId;
    private java.lang.String name;

    private A a;
    private B b;

    public static void main(String[] args) {
        A a=new A();
        a.setId(100L);
        a.setName("zhangd");
        a.setUserId(1000L);
        a.setB(new B());
        a.setA(new A());
        System.out.println(Request.build().from(a));
    }

    public A getA() {
        return a;
    }

    public void setA(A a) {
        this.a = a;
    }

    public B getB() {
        return b;
    }

    public void setB(B b) {
        this.b = b;
    }

    public Object getObject() {
        return object;
    }

    public void setObject(Object object) {
        this.object = object;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
